#include "freertos.h"
#include "task.h"
#include "main.h"
 
void NVIC_Init()
{
	  HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4);
	  HAL_NVIC_SetPriority(SVCall_IRQn, 15, 0);
	  /* PendSV_IRQn interrupt configuration */
	  HAL_NVIC_SetPriority(PendSV_IRQn, 15, 0);
	  HAL_NVIC_SetPriority(SysTick_IRQn, 15, 0);
}

void vApplicationStackOverflowHook(TaskHandle_t xTask,
								   char *pcTaskName)
{
}

 
 
static StaticTask_t xIdleTaskTCBBuffer;
static StackType_t xIdleStack[configMINIMAL_STACK_SIZE];

void vApplicationGetIdleTaskMemory( StaticTask_t **ppxIdleTaskTCBBuffer, StackType_t **ppxIdleTaskStackBuffer, uint32_t *pulIdleTaskStackSize )
{
   *ppxIdleTaskTCBBuffer = &xIdleTaskTCBBuffer;
   *ppxIdleTaskStackBuffer = &xIdleStack[0];
   *pulIdleTaskStackSize = configMINIMAL_STACK_SIZE;
  /* place for user code */
}
 
